﻿#home {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
}
#home > .pa-sidebar {
    height: 100%;
    display: flex;
    flex-direction: column;
}
#home > .pa-sidebar > div.nav-header {
    position: relative;
}
#home > .pa-sidebar > div.nav-header > .btn {
    float: right;
    margin-top: -2px;

    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}
#newMessage:checked ~ .btn {
    background-color: #cccccc \9;
    background-image: none;
    outline: 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}
#newMessage ~ .btn ~ .popover {
    display: block;
    visibility: hidden;
    opacity: 0;
    left: calc(100% - 10px);
    top: -6px;
    width: 300px;
    transition: visibility 0 .8s linear,
                opacity .5s .3s;
}
#newMessage:checked ~ .btn ~ .popover {
    visibility: visible;
    opacity: 1;
    transition: visibility 0 linear,
                opacity .5s;
}
#newMessage ~ .btn ~ .popover .arrow {
    top: 18px;
}
#newMessage ~ .btn ~ .popover .popover-content {
    text-transform: none;
}
#newMessage ~ .btn ~ .popover .popover-content input[type=search] {
    width: 100%;
    box-sizing: border-box;
    height: 28px;
    margin: 0;
}
#newMessage ~ .btn ~ .popover .popover-content > ul {
    list-style: none;
    margin: 10px 0 0 0;
    max-height: 400px;
    transition: .005s .5s margin ease-in, .2s .505s max-height ease-out;
}
#newMessage ~ .btn ~ .popover .popover-content > ul:empty {
    display: none;
}
#newMessage:not(:checked) ~ .btn ~ .popover .popover-content > ul {
    max-height: 0;
    margin-top: 0;
    transition: .005s .2s margin ease-in, .2s max-height ease-out;
}
#newMessage ~ .btn ~ .popover .popover-content > ul > li {
    padding: 3px 5px;
    font-weight: normal;
    color: #333;
    cursor: pointer;
}
#newMessage ~ .btn ~ .popover .popover-content > ul > li:focus,
#newMessage ~ .btn ~ .popover .popover-content > ul > li:hover {
    color: #262626;
    text-decoration: none;
    background-color: #F5F5F5;
}
#home > .pa-sidebar > .left {
    height: 100%;
    width: 260px;
    position: relative;
    padding-top: 2px;
}
#home > .pa-sidebar > .left > li {
    padding: 0 5px;
    width: 230px;
    display: flex;
    flex-direction: row;
    transition: opacity 0.2s ease-out;
}
#home > .pa-sidebar > .left > li.dragging {
    opacity: 0.5;
}
#home > .pa-sidebar > .left > li.dragover {
    outline: 2px dashed #000;
}
#home > .pa-sidebar > .left.dragging > li > * {
    pointer-events: none;
}
#home > .pa-sidebar > .left > li:hover {
    background-color: #EEE;
}
#home > .pa-sidebar > .left > li.active {
    background-color: #08C !important;
}
#home > .pa-sidebar > .left > li > a {
    margin: 0 1px 0 0;
    padding: 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    background: none !important;
}
#home > .pa-sidebar > .left > li > div {
    position: relative;
    width: 18px;
}
#home > .pa-sidebar > .left > li > div > .X {
	position: absolute;
    left: 0;
	right: 0;
	top: 0;
	bottom: 0;
    margin: auto;
    background: none;
    border: none;
}
#home > .pa-sidebar > .left > li > div > .X:active::before,
#home > .pa-sidebar > .left > li > div > .X:active::after {
    opacity: .7;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}
#home > .pa-sidebar > .left > li:not(.active) > div > .X::before,
#home > .pa-sidebar > .left > li:not(.active) > div > .X::after {
    background: #08C;
}
#home > .pa-sidebar > .left > li:not(.active) > div > .X:hover::before,
#home > .pa-sidebar > .left > li:not(.active) > div > .X:hover::after {
    background: black;
}
#home > .pa-sidebar > .left > li:not(:hover) > div {
    display: none;
}
#home > .right {
    margin-left: 10px;
    flex: 1;
    overflow: hidden;
    position: relative;
}